package com.handsome.策略模式;

/**
 * @author niechun
 * @date 2023/3/27 20:05
 */
public class WildDuck extends Duck{

    public WildDuck() {
       super.setFlyBehavior(new GoodFlyBehavior());
    }

    @Override
    public void display() {
        System.out.println("野鸭");
    }
}
